#ifndef MINIMAP_H
#define MINIMAP_H

#include <QGraphicsPixmapItem>
#include <QGraphicsScene>
#include <QPixmap>
#include <QGraphicsView>
#include <QList>

#include "screenrectitem.h"
#include "building.h"

class MiniMap : public QObject, public QGraphicsPixmapItem
{

public:
    MiniMap(QPixmap map, QList<Building*> * buildingList, QGraphicsScene * scene, QGraphicsView * view);

    ScreenRectItem * screenRect;

    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
    void timerEvent(QTimerEvent * event);

private:
    QGraphicsView * parentView;
    QList<Building*> * buildings;

};

#endif // MINIMAP_H
